package com.event.example.jpa;

import com.event.starter.listener.JpaNameSpaceListener;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description TODO
 * @Author Bing
 * @Date 2024/10/9 16:44
 */
@Getter
@Setter
@Table(name = "jjjshop_sms")
@Entity
@EntityListeners({JpaNameSpaceListener.class})
public class SmsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer smsId;

    @Column(name="mobile",nullable = false,length = 11)
    private String mobile;

    @Column(name="code",nullable = false,length = 6)
    private String code;

    @Column(name="app_id",nullable = false)
    private Integer appId;

    @Column(name="is_delete",nullable = false)
    private Byte isDelete;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="update_time")
    private Date updateTime;

    @Column(name="type",nullable = false)
    private Byte type;

}